PhoneBook = {};
PhoneBook.actualHash = null;
PhoneBook.checkHash = true;

PhoneBook.init = function(initialPage, onLoad) {
	if (onLoad) {
		onLoad();
	}
	if (location.hash != '') {
		PhoneBook.actualHash = location.hash;
		$HL(PhoneBook.actualHash.substring(1));
	} else {
		location.hash = initialPage;
	}
	setTimeout(PhoneBook.verifyHash, 100);
}

PhoneBook.verifyHash = function() {
	if (PhoneBook.checkHash) {
		if (location.hash != PhoneBook.actualHash) {
			PhoneBook.actualHash = location.hash;
			$HL(PhoneBook.actualHash.substring(1));
		}
	}
	setTimeout(PhoneBook.verifyHash, 100);
}